package com.minova.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 主页轮播图
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TzIndexImg extends Model<TzIndexImg> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "img_id", type = IdType.AUTO)
    private Long imgId;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 图片
     */
    private String imgUrl;

    /**
     * 说明文字,描述
     */
    private String des;

    /**
     * 标题
     */
    private String title;

    /**
     * 链接
     */
    private String link;

    /**
     * 状态
     */
    private Boolean status;

    /**
     * 顺序
     */
    private Integer seq;

    /**
     * 上传时间
     */
    private LocalDateTime uploadTime;

    /**
     * 关联
     */
    private Long relation;

    /**
     * 类型
     */
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.imgId;
    }

}
